Error of unidentified method in form - Ruby on rails